<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>广告列表</title>
    <hdjs/>
    <bootstrap/>
    <style type="text/css">
        .plus_minus{
            width: 20px;
        }
    </style>
6
</head>
<body>
<div class="wrap">
    <table class="table2">
        <thead>
            <tr pid=0>
                <td width="30"></td>
                <td> 广告ID</td>
                <td>键接地址</td>
                <td>广告标题</td>
                <td>所属类型</td>
                <td>图片预览</td>
                <td>广告排序</td>
                <td width="200">操作</td>
            </tr>
        </thead>
        <tbody>
            <foreach from="$adData" key="$k" value="$v">
                <tr>
                    <td width="30"><a href="javascript:;" class="btn btn-primary btn-xs plus_minus">+</a></td>
                   <td>{$v.adid}</td>
                    <if value="{$v.is_self} eq 0">  
                     <td>{|U:'Goods/index',array('goodsid'=>$v['adlink'])}</td>
                 <else>
                    <td>{$v.adlink}</td>
                 </if>
                    <td>{$v.adtitle}</td>
                    <if value='{$v.is_self} eq 1'>
                    <td>用户自增</td>
                    <elseif value='{$v.is_self} eq 0'>
                    <td>调用商品</td>
                    </if>
                    <td><img style='width:100px;height:50px;' src="__ROOT__/{$v.adpic}" alt="" /></td>
                    <td>{$v.adsort}</td>
                    
                    <td width="200">
                        <a href="{|U:'Ad/edit',array('adid'=>$v['adid'])}" class="btn btn-info btn-xs">编辑</a>
                        <a href="javascript:;" class="btn btn-danger btn-xs" onclick="if(confirm('确定删除吗？')) location.href='{|U:'Ad/del',array('adid'=>$v['adid'])}'">删除</a>
                    </td>
                </tr>
            </foreach>
        </tbody>
    </table>
    <div class="page_hdjob">
        
    </div>
</div>

</body>
</html>


